<?php

if (($s5_menu  == "1") || ($s5_menu  == "3") || ($s5_menu  == "4")){ 
	if ($s5_jsmenu == "s5") { 
		require( TEMPLATEPATH.DS."libs/s5_no_moo_menu.php");
		$menu_name = $this->params->get ("xml_menuname");
	}
	else if ($s5_jsmenu == "jq")  {
		require( TEMPLATEPATH.DS."libs/s5_suckerfish.php");
		$menu_name = $this->params->get ("xml_menuname");
	}
}

else if ($s5_menu  == "2")  {
	require( TEMPLATEPATH.DS."libs/s5_suckerfish.php");
	$menu_name = $this->params->get ("xml_menuname");
}

if ($s5_urlforSEO  == ""){ 
$LiveSiteUrl = JURI::root();}
if ($s5_urlforSEO  != ""){ 
$LiveSiteUrl = "$s5_urlforSEO/";}

$br = strtolower($_SERVER['HTTP_USER_AGENT']);
$browser = "other";

if(strrpos($br,"msie 7") > 1) {
$browser = "ie7";} 

if(strrpos($br,"msie 8") > 1) {
$browser = "ie8";} 

if(strrpos($br,"opera") > 1) {
$browser = "opera";} 


$s5_domain = $_SERVER['HTTP_HOST'];
$s5_url = "http://" . $s5_domain . $_SERVER['REQUEST_URI'];

$s5_frontpage = "yes";
$s5_current_page = "";
if (JRequest::getVar('view') == "frontpage") {
	$s5_current_page = "frontpage";
}
if (JRequest::getVar('view') != "frontpage") {
	$s5_current_page = "not_frontpage";
}
$s5_check_frontpage = strrpos($s5_url,"index.php");
if ($s5_check_frontpage > 1) {
	$s5_current_page = "not_frontpage";
}
$s5_check_frontpage2 = strrpos($s5_url,"view=frontpage&Itemid=1");
if ($s5_check_frontpage2 > 1) {
	$s5_current_page = "frontpage";
}
if ($s5_show_frontpage == "no" && $s5_current_page == "frontpage") {
	$s5_frontpage = "no";
}

?>